import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'logic.dart';

class TestPage extends StatelessWidget {
  final logic = Get.put(TestLogic());
  final state = Get
      .find<TestLogic>()
      .state;

  @override
  Widget build(BuildContext context) {
    return GetBuilder<TestLogic>(builder: (logic) {
      return GetX<TestLogic>(
        init: TestLogic(),
        initState: (_) {},
        builder: (logic) {
          return Obx(() {
            // static const String NamePage = "/NamePage";
            // GetPage(name: xxxPage, page: () => XxxPage()),
            // Get.to(NamePage);
            // Get.toNamed(RouteName);
            // final NameLogic logic = Get.put(NameLogic());
            // final logic = Get.find<NameLogic>();
            // Get.lazyPut(() => NameLogic());
            return Container();
          });
        },
      );
    });
  }
}
